package com.nami.gate.config;

import com.nami.gate.config.rocketmq.RocketMqConfig;

public class GateConfig {

    private String connectId;
    /**
     * 当前服务ip
     */
    private String ip;

    /**
     * 当前服务端口
     */
    private int gatePort;

    private int heartBeatInterval;

    private boolean sslEnable;

    private String sslPemPath;

    private String sslPemPwd;

    private String mqType;

    private String registerType;

    private NacosConfig nacosConfig;

    /**
     * 启动dubbo 配置
     */
    private DubboConfig dubboConfig;

    /**
     * dubbo 或者mq的tags. 标识
     */
    private RpcConfig rpcConfig;

    /**
     * rocketmq config
     */
    private RocketMqConfig rocketMqConfig;


    public GateConfig() {
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getGatePort() {
        return gatePort;
    }

    public void setGatePort(int gatePort) {
        this.gatePort = gatePort;
    }

    public int getHeartBeatInterval() {
        return heartBeatInterval;
    }

    public void setHeartBeatInterval(int heartBeatInterval) {
        this.heartBeatInterval = heartBeatInterval;
    }

    public boolean isSslEnable() {
        return sslEnable;
    }

    public void setSslEnable(boolean sslEnable) {
        this.sslEnable = sslEnable;
    }

    public String getSslPemPath() {
        return sslPemPath;
    }

    public void setSslPemPath(String sslPemPath) {
        this.sslPemPath = sslPemPath;
    }

    public String getSslPemPwd() {
        return sslPemPwd;
    }

    public void setSslPemPwd(String sslPemPwd) {
        this.sslPemPwd = sslPemPwd;
    }

    public String getMqType() {
        return mqType;
    }

    public void setMqType(String mqType) {
        this.mqType = mqType;
    }

    public String getRegisterType() {
        return registerType;
    }

    public void setRegisterType(String registerType) {
        this.registerType = registerType;
    }

    public NacosConfig getNacosConfig() {
        return nacosConfig;
    }

    public void setNacosConfig(NacosConfig nacosConfig) {
        this.nacosConfig = nacosConfig;
    }

    public RpcConfig getRpcConfig() {
        return rpcConfig;
    }

    public void setRpcConfig(RpcConfig rpcConfig) {
        this.rpcConfig = rpcConfig;
    }

    public RocketMqConfig getRocketMqConfig() {
        return rocketMqConfig;
    }

    public void setRocketMqConfig(RocketMqConfig rocketMqConfig) {
        this.rocketMqConfig = rocketMqConfig;
    }

    public DubboConfig getDubboConfig() {
        return dubboConfig;
    }

    public void setDubboConfig(DubboConfig dubboConfig) {
        this.dubboConfig = dubboConfig;
    }

    public String getConnectId() {
        return connectId;
    }

    public void setConnectId(String connectId) {
        this.connectId = connectId;
    }
}
